//
//  FirstViewController.m
//  MatchTouch
//
//  Created by SUN DONG LEE on 13. 1. 22..
//  Copyright (c) 2013년 SUN DONG LEE. All rights reserved.
//

#import "FirstViewController.h"
#import "AppDelegate.h"

@interface FirstViewController ()

@end

@implementation FirstViewController

- (AppDelegate *)appDelegate {
	return [[UIApplication sharedApplication] delegate];
}

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }

    
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view.
    
    // 상태바 숨기기
    if ([self respondsToSelector:@selector(setNeedsStatusBarAppearanceUpdate)]) {
        // iOS 7
        [self performSelector:@selector(setNeedsStatusBarAppearanceUpdate)];
    } else {
        // iOS 6
        [[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationSlide];
    }
}


- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


- (IBAction)goVeganSoft:(id)sender {
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://itunes.com/apps/vegansoft"]];
}

- (IBAction)goDesignCompany:(id)sender {
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.customizedgirl.com"]];
}




// 상태바 숨기기
- (BOOL)prefersStatusBarHidden {
    return YES;
}


@end
